import App from './App';
import {
	createSSRApp
} from 'vue';
import config from '@/config/app.js';
// 分享转发
import share from '@/utils/share.js';
// 动态主题
import colors from '@/mixins/color.js';

export function createApp() {
	const app = createSSRApp(App);
	//使用mixin全局引入
	app.mixin(share);
	app.mixin(colors);

	// 定义全局变量
	app.provide('config', config);
	app.provide('web_host', config.HTTP_REQUEST_URL);

	return {
		app
	}
}